home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 October / CHIP Turkiye Ekim 2000.iso / prog / share / 52 / setup.exe / XWP32R.Z / STARTAP.COM < prev    next >
Text File  |  1998-03-13  |  897b  |  34 lines

  1. $ set noverify
  2. $ define decw$login_norestart true
  3. $!
  4. $ IF P1 .EQS. "" THEN GOTO USAGE
  5. $ transport ="tcpip"
  6. $ string = f$element(2,".",P1)
  7. $ IF string .EQS. "." THEN GOTO USAGE
  8. $!
  9. $ open/write output startap2.com
  10. $ write output "$ define decw$login_norestart true"
  11. $ write output "$ set display/create /node=''P1'/trans=''transport'"
  12. $ write output "$ ON ERROR THEN CONTINUE"
  13. $ write output "$ define sys$login ''f$trnlnm("sys$login")'"
  14. $ write output "$ create/term/detach"
  15. $ close output
  16. $!
  17. $ purge/keep=5 startap2.com
  18. $ run sys$system:loginout.exe /detach -
  19.                               /input=startap2.com -
  20.                               /error=startap2.err -
  21.                               /output=startap2.log
  22. $ purge/keep=5 startap2.log
  23. $ GOTO EXIT
  24. $!
  25. $USAGE:
  26. $type sys$input
  27. Usage:
  28.     @startap <PC's IP address>
  29. $ GOTO EXIT
  30. $!
  31. $EXIT:
  32. $ SET NOVERIFY
  33. $ exit
  34.